from django.db import models
import django.utils.timezone as timezone
import datetime

# Create your models here.
class comment(models.Model):
    # TODO: Define fields here}
    username = models.CharField(default="xxx", max_length=10)
    userid = models.CharField(default="xxx", max_length=15)
    title = models.CharField(default="xxx", max_length=20)
    comments = models.CharField(default="xxx", max_length=1000)
    picture = models.ImageField(default="", upload_to="images/")
    pub_date = models.DateTimeField()

    def __str__(self):
        return self.title
